package com.yuanfeng.userms.vo;

import com.yuanfeng.commoms.util.DateUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopVipUserVO {

    /**
     *
     */
    private Integer id;

    /**
     *用户id
     */
    private String userId;

    /**
     *用户名
     */
    private String userName;

    /**
     *备注
     */
    private String remark;

    /**手机
     *
     */
    private String mobile;

    /**
     *性别
     */
    private Integer sex;

    /**
     *VIP标签
     */
    private String vipLabel;

    /**
     *真实姓名
     */
    private String realName;

    /**
     *注册时间
     */
    private String registerTime;

    /**
     *最后登录时间
     */
    private String lastLoginTime;

    /**
     *店铺id
     */
    private Integer shopId;

    /**
     *店铺名
     */
    private String shopName;

    /**
     *门店id
     */
    private Integer storeId;

    /**门店名
     *
     */
    private String storeName;

    /**
     *商家用户id
     */
    private String shopUserId;

    /**
     *来源  1商家邀请  2商家自己添加  3.微客邀请
     */
    private Integer var1;

    /**
     *暂定 微客上级id
     */
    private String var2;

    /**
     *分享佣金总额
     */
    private String var3;

    /**
     *
     */
    private String var4;

    public ShopVipUserVO(String userId, Integer shopId, String mobile, Integer storeId, String storeName) {
        this.userId = userId;
        this.shopId = shopId;
        this.mobile = mobile;
        this.storeId = storeId;
        this.storeName = storeName;
    }

    public ShopVipUserVO(String userId, Integer shopId, Integer storeId, String storeName) {
        this.userId = userId;
        this.shopId = shopId;
        this.storeId = storeId;
        this.storeName = storeName;
    }

    public ShopVipUserVO(UserInfoDetailVO userInfo) {
        this.userId = userInfo.getUserId().toString();
        this.userName = userInfo.getUserName();
        this.mobile = userInfo.getUserMobile();
        this.realName = userInfo.getUserTruename();
        this.sex = userInfo.getUserGender();
        this.registerTime = DateUtils.getNowDateToString();
        this.lastLoginTime = userInfo.getUserLastloginTime().toString();
    }

    public ShopVipUserVO(String userId, String mobile, Integer shopId) {
        this.userId = userId;
        this.mobile = mobile;
        this.shopId = shopId;
    }

}
